Skip to content

Coveralls Integration#124

Merged
fi5421 merged 4 commits intomainfrom
coverall_integration
May 20, 2025
Merged

Coveralls Integration#124
fi5421 merged 4 commits intomainfrom
coverall_integration

Conversation

@fi5421
Copy link
Collaborator

@fi5421 fi5421 commented May 16, 2025

PR: Integrate Coveralls with Text2SQL

This pull request implements Add Coveralls to Text2SQL Repo

Summary of Changes

  • Add .coveragerc configuration
    Configures code coverage behavior. Key points:

    • Import statements are excluded from executable line counts.
    • server/constants is excluded since those files default to 100% coverage.
    • Coverage is restricted to files under the server directory.
  • Add GitHub Actions workflow
    Introduces an Actions workflow to automate test coverage reporting via Coveralls.

  • Remove outdated batch_job.py
    The batch_job.py module and all related references have been deleted. This file was obsolete and caused compatibility breaking error during testing.

  • Clean up unused references in utility_functions.py
    The function mask_question_and_answer_files no longer exists, so related calls have been removed.

  • Minor fixes in test_main.py
    Updated test logic and imports to ensure all tests pass under the new configuration.

  • Update path_config.py for test compatibility
    Modified post_init to return an empty string instead of None, preventing runtime errors when running tests in environments without a data/ directory.

- updated tests for main
- updated main.py to remove outdated api endpoints
- deleted batch_job since no longer needed and breaking file
- updated path_config for fallback in post_init
@fi5421 fi5421 self-assigned this May 16, 2025
@fi5421 fi5421 added the chore label May 16, 2025
@fi5421 fi5421 marked this pull request as ready for review May 16, 2025 21:45
@AwaisKamran AwaisKamran requested a review from Copilot May 16, 2025 22:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR integrates Coveralls for code coverage reporting into the Text2SQL repository, updates test configurations, and removes obsolete code.

  • Added a .coveragerc file and GitHub Actions workflow for automated test coverage reporting.
  • Removed the outdated batch_job.py file and unused masking endpoint, and updated tests for database change consistency.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
server/utilities/path_config.py Changed post_init to return an empty string for consistency during tests
server/utilities/batch_job.py Removed outdated batch job functionality
server/test/test_main.py Updated tests to accommodate changes in masking and database change endpoints
server/requirements.txt Added dependencies for pytest, pytest-cov, and coveralls
server/app/main.py Removed obsolete endpoints for batch processing and file masking
.github/workflows/coverage.yaml Added GitHub Actions workflow for test and coverage automation
.coveragerc Added coverage configuration to include/exclude specific files

fi5421 added 3 commits May 17, 2025 12:56
action triggered on push only
deleted batch related paths in path_config
deleted process_batch_output
@fi5421 fi5421 merged commit cb8c7e2 into main May 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants